package packageLego;

import lejos.nxt.addon.EOPD;
import lejos.nxt.*;
public class Detection {
	public static void main(String[] args) throws InterruptedException {
		EOPD detect= new EOPD(SensorPort.S1,true);
		detect.setModeLong();
		while(!Button.ESCAPE.isPressed())
		{
			LCD.drawString("Value process:"+detect.processedValue(),0,0);
			LCD.refresh();
			Thread.sleep(10);
		}

	  }
	
}
